{include_core file="m/lib/header.html" title="商品详情-联想NBD商城"}
<style>
  .tab-title li {
    float: left;
    width: 50% !important;
    text-align: center;
  }
</style>
<script>
  var goodsId = {$goods_id};
  var skuList = {$sku_list|json_encode};
  if (skuList.length == 1) {
    var checkedSkuId = skuList[0].id
  } else {
    var checkedSkuId = 0;
  }
  var propertyIds = {$property|json_encode};
  var stock  = "{$stock}";
  var flagship = {$goods_info.flagship};
  var flagship_link = '{$goods_info.flagship_link}';
</script>
    {widget model="goods" func='get_image_list' file="m/image_list.html" goods_id=$goods_id}
    <!--banner end-->

    <div class="banner-info clearfix">
      <div class="banner_box1">
        <p>{$goods_info.title}</p>
        <!-- <a href="javascript:void(0);"><img src="{$smarty.const.STATIC_URL}/images/m2-images/c-edit.3.png"/></a> -->
      </div>
      
      <div class="banner_box2">
        <p>{$goods_info.intro}</p>
      </div>

    <span class="banner-mony">￥{$goods_info.price}</span>
    <span class="banner-del">{if $goods_info.market_price != 0.00}￥{$goods_info.market_price}{/if}</span>

    <div class="banner_star">
    {$star = comment_helper::get_comment_star($goods_info.id)}
    {for $var = 1 to 5}
      <a class="star" href="javascript:void(0);" {if $var > $star}class="disabled"{/if}></a>
    {/for}
    {$count_comment = comment_helper::get_count_comment($goods_id)}
      {if $count_comment >= 50}<p>{$count_comment}人评价</p>{/if}
    </div>
    
    </div>
    <!--banner-info end-->
    {if $is_snapshot != 1}
      {if $goods_info.is_sale}
        {widget model="goods" func='get_sku_list' file="m/sku_list.html" goods_id=$goods_id}
      {/if}
    {/if}
    <a class="img_detil clearfix" href="{AnUrl("goods/$goods_id?img_details=1")}">
      <p>图文详情</p>
      <span class="img_rotate"></span>
    </a>
    {if $is_snapshot != 1}

      {if $goods_info.is_sale && goods_helper::get_stock_by_id($goods_info.id) != 0}
        <!--吸底 begin-->
        <div id="ab_border">
          <div id="absorb">
            {if cart_helper::can_add_cart($goods_info.id) === true}
            <a class="ab_btn1 car-btn" href="javascript:void(0);">加入购物车</a>
            {else}
            <a class="ab_btn1 car-btn" href="javascript:showMsg('此商品不能添加到购物车');return false;">加入购物车</a>
            {/if}
            <a class="ab_btn2 buy-btn" href="javascript:void(0);" data-is_direct_buy="{$goods_info.is_direct_buy}">立即购买</a>
            <div class="ab_cart">
              <a href="{AnUrl('cart')}"><img src="{$smarty.const.STATIC_URL}/images/m2-images/buy-car.png"/></a>
              <p>购物车</p>
            </div>
          </div>
        </div>
        <!--吸底 end-->
      {/if}
    {/if}
  <!--container end-->

  <!--返回顶端-->
  <div class="return_top js_return_top hidden"><img src="{$smarty.const.STATIC_URL}/images/m2-images/top_1.png"/></div>

  {* <div class="control">
    <ul class="tab-title clearfix">
      <li class="curr"><a href="javascript:void(0);">图文详情</a></li>
      {if $goods_info.technical}<li><a href="javascript:void(0);">详细参数</a></li>{/if}
    </ul>
    <div class="tab-warp">
      <div class="tab-content">{$goods_info.content}</div>
      <div class="tab-content hidden">{$goods_info.technical}</div>
    </div>
  </div> *}

{load_js file="jquery.carouFredSel-6.2.1-packed.js"}
{load_js file="jquery.touchSwipe.min2.js"}
{load_js file="app/goods.js"}
{load_js file="jquery.scrollTo.min.js"}
<script type="text/javascript">

  var $menu = $('.control > .tab-title li');
  $menu.click(function(){
      $(this).addClass('curr').siblings().removeClass('curr');
      var index = $menu.index(this);
      $('.tab-warp > .tab-content').eq(index).show().siblings().hide();
  });
$(function(){
  //右侧边栏控制
  var rightBox = $('.js_return_top');
  document.onscroll = function() {
      var docTop = document.body.scrollTop | document.documentElement.scrollTop;
      if (docTop > 200) {
        rightBox.removeClass("hidden");
      }
      if (docTop < 200) {
        rightBox.addClass("hidden");
      }
  }
  $('.js_return_top').click(function(){
    $.scrollTo('body', 500);
  })
  
});
</script>

<script language="JavaScript" type="text/javascript"><!--
/* You may give each page an identifying name, server, and channel on
the next lines. */
s.pageName="Nbd:商品详情:{$goods_info.title}";
s.server=""
s.channel="Nbd"
s.pageType=""
s.prop1="Nbd:商品详情";
s.prop2="Nbd:商品详情:{$goods_info.title}";
s.prop3="Nbd:商品详情:{$goods_info.title}";
s.prop4="Nbd:商品详情:{$goods_info.title}";
/* Conversion Variables */
s.campaign=""
s.state=""
s.zip=""
s.events="prodView,event27";
s.products=";{$goods_info.id}";
s.purchaseID=""
s.eVar1=""
s.eVar2=""
s.eVar3=""
s.eVar4=""
s.eVar5=""
/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
var s_code=s.t();if(s_code)document.write(s_code)//--></script>
<script language="JavaScript" type="text/javascript"><!--
if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-')
//--></script><noscript><img src="http://lenovochina.122.2o7.net/b/ss/lenovo-nbd-prd/1/H.26.2--NS/0"
height="1" width="1" border="0" alt="" /></noscript><!--/DO NOT REMOVE/-->
<!-- End SiteCatalyst code version: H.26.2. -->
</div>
</div>
<div id="baiduTongji" style="display:none;">
  {setting_helper::get_value('statistics_code', 1)}
</div>
</body>
</html>
{* {include_core file="m/lib/footer.html"} *}